package com.ruoyi.project.modules.parameter.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 接口下数据集及字段对象 t_interface_params_field_relation
 * 
 * @author smallrain
 * @date 2021-10-30
 */
public class InterfaceParamsFieldRelation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 接口对象类型（1实体用况Dubbo接口 2实体用况Bff接口 3 虚拟用况接口 ） */
    @Excel(name = "接口对象类型", readConverterExp = "1=实体用况Dubbo接口,2=实体用况Bff接口,3=,虚=拟用况接口")
    private String type;

    /** 关联归属接口对象ID */
    @Excel(name = "关联归属接口对象ID")
    private Long interfaceId;

    /** 关联接口下内容对象类型（1字段 2数据集） */
    @Excel(name = "关联接口下内容对象类型", readConverterExp = "1=字段,2=数据集")
    private String objectType;

    /** 关联接口下内容对象ID（1字段ID 2数据集ID） */
    @Excel(name = "关联接口下内容对象ID", readConverterExp = "1=字段ID,2=数据集ID")
    private Long objectId;

    /** 关联状态ID（只有字段是状态类型，关联其中一个状态ID（针对BFF） */
    @Excel(name = "关联状态ID", readConverterExp = "只=有字段是状态类型，关联其中一个状态ID（针对BFF")
    private Long statusId;

    /**
     * 数据关联类型 1-接口下数据集及字段表 2-数据集下面字段关系
     */
    private String dataRelationType = "1";

    /** 关联状态ID（只有字段是状态类型，关联其中一个状态ID（针对BFF） */
    @Excel(name = "关联状态ID", readConverterExp = "只=有字段是状态类型，关联其中一个状态ID（针对BFF")
    private Long dataRelationId;

    private Long dataRelationInterfaceId;

    /** 是否作为入参（Y是 N否） */
    @Excel(name = "是否作为入参", readConverterExp = "Y=是,N=否")
    private String isInParam;

    /** 排序 */
    @Excel(name = "排序")
    private Integer sortNum;

    private String operate;

    public String getOperate() {
        return operate;
    }

    public void setOperate(String operate) {
        this.operate = operate;
    }

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /**
     * 节点类型： F:父 Z:子（针对返回树形结构有用）
     */
    private String nodeType;

    private String isRequired;

    private String isRequiredParent;

    private String fieldDescription;

    private String designContent;

    private String isUpdate = "Y";

    private String orderType;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;
    private String paramsEnName;
    private String paramsName;
    private Long interfaceDataListId;
    private Long tableId;
    private List<Long> interfaceIds;
    private List<Long> fieldIds;
    private List<Long> ids;

    private String aliasName;
    private String aliasZhName;
    private String conditionWay;
    private String isTree;
    private String isAllowEmpty;
    private String treeModel;
    private String otherModel;
    private List<Long> dataRelationIds;

    private String dictCategory;
    private String dictType;
    private String dictValue;
    private Long errorCodeCategoryId;
    private String errorCode;

    public Long getErrorCodeCategoryId() {
        return errorCodeCategoryId;
    }

    public void setErrorCodeCategoryId(Long errorCodeCategoryId) {
        this.errorCodeCategoryId = errorCodeCategoryId;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getDictCategory() {
        return dictCategory;
    }

    public void setDictCategory(String dictCategory) {
        this.dictCategory = dictCategory;
    }

    public String getDictType() {
        return dictType;
    }

    public void setDictType(String dictType) {
        this.dictType = dictType;
    }

    public String getDictValue() {
        return dictValue;
    }

    public void setDictValue(String dictValue) {
        this.dictValue = dictValue;
    }

    public String getIsAllowEmpty() {
        return isAllowEmpty;
    }

    public void setIsAllowEmpty(String isAllowEmpty) {
        this.isAllowEmpty = isAllowEmpty;
    }

    public String getTreeModel() {
        return treeModel;
    }

    public void setTreeModel(String treeModel) {
        this.treeModel = treeModel;
    }

    public String getOtherModel() {
        return otherModel;
    }

    public void setOtherModel(String otherModel) {
        this.otherModel = otherModel;
    }

    public String getIsTree() {
        return isTree;
    }

    public void setIsTree(String isTree) {
        this.isTree = isTree;
    }

    public String getAliasZhName() {
        return aliasZhName;
    }

    public void setAliasZhName(String aliasZhName) {
        this.aliasZhName = aliasZhName;
    }

    public List<Long> getDataRelationIds() {
        return dataRelationIds;
    }

    public void setDataRelationIds(List<Long> dataRelationIds) {
        this.dataRelationIds = dataRelationIds;
    }

    public String getConditionWay() {
        return conditionWay;
    }

    public void setConditionWay(String conditionWay) {
        this.conditionWay = conditionWay;
    }

    public Long getDataRelationInterfaceId() {
        return dataRelationInterfaceId;
    }

    public void setDataRelationInterfaceId(Long dataRelationInterfaceId) {
        this.dataRelationInterfaceId = dataRelationInterfaceId;
    }

    public String getAliasName() {
        return aliasName;
    }

    public void setAliasName(String aliasName) {
        this.aliasName = aliasName;
    }

    public String getIsRequiredParent() {
        return isRequiredParent;
    }

    public void setIsRequiredParent(String isRequiredParent) {
        this.isRequiredParent = isRequiredParent;
    }

    public String getOrderType() {
        return orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }

    public String getIsRequired() {
        return isRequired;
    }

    public void setIsRequired(String isRequired) {
        this.isRequired = isRequired;
    }

    public String getFieldDescription() {
        return fieldDescription;
    }

    public void setFieldDescription(String fieldDescription) {
        this.fieldDescription = fieldDescription;
    }

    public String getDesignContent() {
        return designContent;
    }

    public void setDesignContent(String designContent) {
        this.designContent = designContent;
    }

    public String getIsUpdate() {
        return isUpdate;
    }

    public void setIsUpdate(String isUpdate) {
        this.isUpdate = isUpdate;
    }

    public String getNodeType() {
        return nodeType;
    }

    public void setNodeType(String nodeType) {
        this.nodeType = nodeType;
    }

    public String getDataRelationType() {
        return dataRelationType;
    }

    public void setDataRelationType(String dataRelationType) {
        this.dataRelationType = dataRelationType;
    }

    public List<Long> getIds() {
        return ids;
    }

    public void setIds(List<Long> ids) {
        this.ids = ids;
    }

    private List<ParamsFieldRelation> paramsFieldRelationList;

    public List<ParamsFieldRelation> getParamsFieldRelationList() {
        return paramsFieldRelationList;
    }

    public void setParamsFieldRelationList(List<ParamsFieldRelation> paramsFieldRelationList) {
        this.paramsFieldRelationList = paramsFieldRelationList;
    }

    public List<Long> getFieldIds() {
        return fieldIds;
    }

    public void setFieldIds(List<Long> fieldIds) {
        this.fieldIds = fieldIds;
    }

    public List<Long> getInterfaceIds() {
        return interfaceIds;
    }

    public void setInterfaceIds(List<Long> interfaceIds) {
        this.interfaceIds = interfaceIds;
    }

    public Long getTableId() {
        return tableId;
    }

    public void setTableId(Long tableId) {
        this.tableId = tableId;
    }

    public Long getInterfaceDataListId() {
        return interfaceDataListId;
    }

    public void setInterfaceDataListId(Long interfaceDataListId) {
        this.interfaceDataListId = interfaceDataListId;
    }

    public String getParamsEnName() {
        return paramsEnName;
    }

    public void setParamsEnName(String paramsEnName) {
        this.paramsEnName = paramsEnName;
    }

    public String getParamsName() {
        return paramsName;
    }

    public void setParamsName(String paramsName) {
        this.paramsName = paramsName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setInterfaceId(Long interfaceId) 
    {
        this.interfaceId = interfaceId;
    }

    public Long getInterfaceId() 
    {
        return interfaceId;
    }
    public void setObjectType(String objectType) 
    {
        this.objectType = objectType;
    }

    public String getObjectType() 
    {
        return objectType;
    }
    public void setObjectId(Long objectId) 
    {
        this.objectId = objectId;
    }

    public Long getObjectId() 
    {
        return objectId;
    }
    public void setStatusId(Long statusId) 
    {
        this.statusId = statusId;
    }

    public Long getStatusId() 
    {
        return statusId;
    }
    public void setDataRelationId(Long dataRelationId) 
    {
        this.dataRelationId = dataRelationId;
    }

    public Long getDataRelationId() 
    {
        return dataRelationId;
    }
    public void setIsInParam(String isInParam) 
    {
        this.isInParam = isInParam;
    }

    public String getIsInParam()
    {
        return isInParam;
    }
    public void setSortNum(Integer sortNum)
    {
        this.sortNum = sortNum;
    }

    public Integer getSortNum()
    {
        return sortNum;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("type", getType())
            .append("interfaceId", getInterfaceId())
            .append("objectType", getObjectType())
            .append("objectId", getObjectId())
            .append("statusId", getStatusId())
            .append("dataRelationId", getDataRelationId())
            .append("isInParam", getIsInParam())
            .append("sortNum", getSortNum())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
